/*
 * Session.java
 *
 * Created on March 15, 2007, 2:06 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

/**
 *
 * @author Sam
 */
public class Session {    
    private Store store;
    private Employee employee;
    private long timestamp;
    /** Creates a new instance of Session */
    /**
     * Store ID and Employee ID whould be parameters, but I am going to hard
     * code store ID and Employee ID for testing purposes
     ***/
    public Session(String employeeId, String storeId) {
        try {
            
            store = StoreDAO.getInstance().read(storeId);
            employee = EmployeeDAO.getInstance().read(employeeId);
        } catch (DataException ex) {
            ex.printStackTrace();
        }
        
    }

    public Store getStore() {
        return store;
    }

    public Employee getEmployee() {
        return employee;
    }
   
    
}
